
using BLL.Webmonitor;
using DEL.Webmonitor;
using Microsoft.AspNetCore.Mvc;

namespace Web.Areas.Webmonitor.Controllers
{
    public class KeywordController : WebmonitorController<Keyword>
    {
        protected override void SetCurrentEntityService()
        {
            CurrentEntityService = BLLFactory.SetKeywordService();
        }

        public JsonResult GetAllListByKeywordType2ToJson(int id)
        {
            var data = CurrentEntityService.GetEntitysByLambdaAndSort(o => o.KeywordType2Id == id, OrderLambda, IsASC);
            return Json(data);
        }
    }
}